package com.yuandian.ops.workbench.service;

import com.yuandian.api.business_monitor.po.AlarmParams;
import com.yuandian.bpm.common.core.util.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * 告警业务查询 service
 *
 * @author LinShiHe
 * @date 2023/03/12
 */
public interface IBusinessAlarmService {


	/**
	 * 查询告警业务信息
	 * @param params 请求参数
	 * @return 通用返回对象
	 */
    R<Object> getBusinessAlarm(AlarmParams params);


    /**
     * 告警业务查询下载
     *
	 */
    void exportExcel(AlarmParams params, HttpServletResponse response) throws IOException;

	/**
	 * 告警归并分析下载
	 * @param params 请求参数
	 * @param response 响应体
	 * @throws UnsupportedEncodingException 异常对象
	 */
    void getAlarmMergeDownLoad(AlarmParams params, HttpServletResponse response) throws UnsupportedEncodingException;
}
